package com.vcc.service.boss.response.wellat;

import com.vcc.service.boss.response.baseVo.BossBaseVo;
import com.vcc.data.entity.Wallet;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
public class WalletVoBoss extends BossBaseVo implements Serializable {
    //比重代码
    private String currencyCode;
    //可用额度
    private BigDecimal usableQuota;
    //充值额度
    private BigDecimal rechargeQuota;
    //消费额度
    private BigDecimal consumptionQuota;
    //充值费率
    private BigDecimal exchangeRate;

    WalletVoBoss() {
    }

    public WalletVoBoss(Wallet wallet) {
        super.setId(wallet.getId());
        this.currencyCode = wallet.getCurrencyCode();
        this.usableQuota = wallet.getUsableQuota();
        this.rechargeQuota = wallet.getRechargeQuota();
        this.consumptionQuota = wallet.getConsumptionQuota();
        this.exchangeRate = wallet.getExchangeRate();
    }
}
